﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CheckPermit;

namespace Sample_CheckPermit
{
    internal class Program
    {
        static void Main(string[] args)
        {

            Vm_License license = new Vm_License() { Content = "good luck" };

            Vm_CheckPermit.SaveLicense("good luck", "license.dat");

            Console.WriteLine(Vm_CheckPermit.GetSHA256("good luck"));

            bool IsUse = Vm_CheckPermit.CheckPermit("license.dat", "http://127.0.0.1/check/");
            Console.WriteLine(IsUse);

            Console.ReadLine();
        }
    }
}
